#include<iostream>
#include<opencv2/imgcodecs.hpp>
#include<opencv2/highgui.hpp>
#include<opencv2/imgproc.hpp>
#include<opencv2/objdetect.hpp>
#include<string>
#include<vector>

using namespace std;
using namespace cv;

Mat lvbo(Mat img)
{
    Mat result;
    Mat st = getStructuringElement(0,Size(5,5));//生成结构元素
    // namedWindow("st",WINDOW_NORMAL);
    // imshow("st",st);

    //开运算
    morphologyEx(img,result,MORPH_OPEN,st);//形态学操作函数(原图，输出图，操作类型，结构元素)

    return result;

}